from boost_semantic_graph import SemanticPoint,SemanticGraph

p1 = SemanticPoint(3)
p1.set(0,11)
p1.set(1,12)
p1.set(2,13)
print p1.get(0),p1.get(1),p1.get(2)



p2 = SemanticPoint(3)
p2.set(0,21)
p2.set(1,22)
p2.set(2,23)

g = SemanticGraph()
vd1 = g.add_vertex(p1) 
print g.num_vertices(),vd1
vd2= g.add_vertex(p2) 
print g.num_vertices(), vd2

has_error = g.add_edge(vd1,vd2,4)
print has_error 
print "has_neighbor",g.has_neighbor_weight(vd1,4)
print "has_neighbor",g.has_neighbor_weight(vd1,5)

has_error = g.add_edge(vd1,vd2,65)
print has_error 
print g.weight(vd1,vd2)



print g.point(vd1).get(0)
print g.point(vd2).get(0)
